var map;
var markers = {};
var infoWindow = new google.maps.InfoWindow();

var mapCenter = new google.maps.LatLng( 34.723973, -86.499655 );
var mapZoom = 11;

function initializeMap()
{
	var mapOptions = { zoom: mapZoom, center: mapCenter, mapTypeId: google.maps.MapTypeId.ROADMAP };
	map = new google.maps.Map( document.getElementById( "map_canvas" ), mapOptions );
}

function selectMarker( name )
{
	var marker = markers[ name ];
	infoWindow.close();
	infoWindow.setContent( marker.info );
	map.panTo( marker.position );
	infoWindow.open( map, marker );
}
